/**
 * 
 */
package Change.service.impl;

import java.util.List;

import Change.dao.InterestDao;
import Change.model.Interest;
import Change.service.InterestManager;

/**
 * @author cancer
 *
 */
public class InterestManagerImpl extends GenericManagerImpl<Interest, Long> implements
		InterestManager {

	private  InterestDao dao;
	
	public InterestManagerImpl(InterestDao dao) {
		super(dao);
		this.dao = dao;
	}


	public List<Interest> getInterests(Long parentId) {
		return dao.getInterests(parentId);
	}

	public List<Interest> getInterests(Interest parent) {
		return dao.getInterests(parent.getId());
	}
	
	public Interest getInterest(Long id){
		return dao.getInterest(id);
	}

}
